projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00a05aa
)
(with-no-warnings): Simplify: take all args as &rest arg.
author
Richard M. Stallman
<rms@gnu.org>
Wed, 21 Apr 2004 19:10:29 +0000
(19:10 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Wed, 21 Apr 2004 19:10:29 +0000
(19:10 +0000)
lisp/emacs-lisp/byte-run.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/byte-run.el
b/lisp/emacs-lisp/byte-run.el
index 9956d5003cc29bed6f613c680efb41cae72554b5..4ed47129fc9792851a27388f8293cec073c66765 100644
(file)
--- a/
lisp/emacs-lisp/byte-run.el
+++ b/
lisp/emacs-lisp/byte-run.el
@@
-134,11
+134,10
@@
The result of the body appears to the compiler as a quoted constant."
;; Remember, it's magic.
(cons 'progn body))
-(defun with-no-warnings (&
optional first &
rest body)
+(defun with-no-warnings (&rest body)
"Like `progn', but prevents compiler warnings in the body."
;; The implementation for the interpreter is basically trivial.
- (if body (car (last body))
- first))
+ (car (last body)))
\f
;;; I nuked this because it's not a good idea for users to think of using it.